package com.connection;

import java.sql.Connection;

/**
 * @author xinwang
 * @date 2020/3/17 23:20
 **/
public class ConnectionPoolManage {
    private static DbBean dbBean=new DbBean();
    private static ConnectionPool connectionPool=new ConnectionPool(dbBean);

    public static Connection getConnection(){
       return connectionPool.getConnection();
    }

    public static void closeConnection(Connection connection){
        connectionPool.releaseConnection(connection);
    }


}
